package com.community.body.domain;

import java.math.BigDecimal;
import java.util.List;

import com.community.common.annotation.Excel;
import com.community.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 楼栋信息对象 zy_building
 * 
 * @author community
 * @date 2024-04-09
 */
public class ZyBuilding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 楼栋id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long buildingId;

    /** 楼栋名称 */
    @Excel(name = "楼栋名称",sort = 1)
    private String buildingName;

    /** 楼栋编码 */
    @Excel(name = "楼栋编码",sort = 2)
    private String buildingCode;

    /** 楼栋面积 */
    @Excel(name = "楼栋面积",sort = 3)
    private BigDecimal buildingAcreage;

    /** 小区id */
    @Excel(name = "小区id",sort = 4)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityId;

   private List<ZyUnit> children;

    public Long getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Long buildingId) {
        this.buildingId = buildingId;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getBuildingCode() {
        return buildingCode;
    }

    public void setBuildingCode(String buildingCode) {
        this.buildingCode = buildingCode;
    }

    public BigDecimal getBuildingAcreage() {
        return buildingAcreage;
    }

    public void setBuildingAcreage(BigDecimal buildingAcreage) {
        this.buildingAcreage = buildingAcreage;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public List<ZyUnit> getChildren() {
        return children;
    }

    public void setChildren(List<ZyUnit> children) {
        this.children = children;
    }

    public ZyBuilding() {
    }

    public ZyBuilding(Long buildingId, String buildingName, String buildingCode, BigDecimal buildingAcreage, Long communityId, List<ZyUnit> children) {
        this.buildingId = buildingId;
        this.buildingName = buildingName;
        this.buildingCode = buildingCode;
        this.buildingAcreage = buildingAcreage;
        this.communityId = communityId;
        this.children = children;
    }
}
